<template>
  <div class="">
    <report-list :reportinfoList="reportinfoList" :routeLink="routeLink"></report-list>
  </div>
</template>
<script>
import reportList from './components/reportlist'
export default {
  data(){
    return{
      reportinfoList:'',
      companyIds:this.$store.getters.companyId,
      uid:this.$store.getters.userUid,
      idGruop:''
    }
  },
  methods:{
    routeLink(id,name){
      // this.$router.push('/forms/details/' + id)
       this.$router.push({path:'/forms/details/',query:{id:id,name:name} })
    },
    get_reportList(){
      this.$post("/roleReport/getReportList",{companyid:this.companyIds,type:2,uid:this.uid},data => {
           this.reportinfoList = data;
        },error => {
          this.$message.error(error);
      });
    }
  },
  components:{
    reportList
  },
  created(){
    this.get_reportList();
  }
}
</script>